package cn.lysj.framework.common.validate.annotation;

import cn.lysj.framework.common.validate.constant.Message;
import cn.lysj.framework.common.validate.validate.MinValidate;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.ElementType.PARAMETER;

/**
 * @author ww
 * @date 2018-08-22 9:32
 * @Description 最小值验证
 */
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
public @interface Min {
    Class<?> clazz() default MinValidate.class;
    String message() default Message.MIN;
    Class<?>[] groups() default { };
    int min() default 0;
    boolean equal() default true;
}
